package com.ebei.admin.model.dto;

import com.ebei.admin.common.util.CommonUtil;
import com.ebei.admin.common.util.annotation.ExcelField;
import com.ebei.common.constant.CommonConstant;
import lombok.Data;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

import java.util.Date;

@Data
public class UserExcelDTO {

    @ExcelField("姓名")
    private String userName;

    @ExcelField("账号")
    private String userAccount;

    @ExcelField("手机号码")
    private String telephone;

    @ExcelField("性别")
    private String sex;

    @ExcelField("人员类型")
    private String type;

    private Date createTime = new Date();

    private static String password = CommonUtil.ENCODER.encode(CommonConstant.DEFAULT_PASSWORD);

    private static String salt = CommonConstant.DEFAULT_SALT;

    private static String delFlag = CommonConstant.STATUS_NORMAL;

}
